package net.dengzixu.java.homework.period8;

public class Period8Homework3 {
    public static void main(String[] args) {
        int line = 8;


        for (int i = 1; i <= line; i++) {
            for (int j = line; j > i - 1; j--) {
                System.out.print("   ");
            }
            for (int j = 1; j < 2 * i; j++) {
                System.out.print(" " + (j <= i ? j : 2 * i - j) + " ");
            }
            System.out.println();
        }

    }
}
